﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MsExchangeBcsConnector.ExchangeBdcModel
{
    public class MailBatch
    {
  

        // Properties 
        public bool MoreAvailable
        {
            get;
            set;
        }

        public Message[] Mails
        {
            get;
            set;
        }
        public int Offset
        {
            get;
            set;
        }

        public string MailBoxAddress { get; set; }
        public string MailFolderId { get; set; }
        
        public MailBatch() { 
            this.MoreAvailable = true;
            this.Offset = 0;
        }

        public MailBatch(string MailFolderId,  string MailBoxAddress)
            : this()
        {
            this.MailFolderId = MailFolderId;
            this.MailBoxAddress = MailBoxAddress;

        }

        public MailBatch(string MailFolderId, string MailBoxAddress, int? Offset)
            : this(MailFolderId, MailBoxAddress)            
        {
            if (Offset != null)
                this.Offset = (int) Offset;
        }

    }

}
